#include "RenderPch.h"

#include "PointLight.h"
#include "Vector3.h"

CPointLight::CPointLight(void)
{
	Type = D3DLIGHT_POINT;
}

void CPointLight::Init( const Vector3& vPos, const float& fRange,
		const D3DCOLORVALUE& diffuse, 
		const D3DCOLORVALUE& ambient, 
		const D3DCOLORVALUE& specular,
		const float& fAttenu0,
		const float& fAttenu1,
		const float& fAttenu2 )
{
	Position = vPos;
	Range = fRange;

	Diffuse = diffuse;
	Ambient = ambient;
	Specular = specular;

	Attenuation0 = fAttenu0;
	Attenuation1 = fAttenu1;
	Attenuation2 = fAttenu2;
}